import map from 'ol/Map'
export default class Animation {
    constructor(private map: map) { }
    /**
     * 跳跃至提供的坐标点
     * @param coordinate [经度,纬度]
     * @param duration 过渡时间 /s
     */
    jumpToLocation(coordinate:Array<any>, duration: number ,zoom: number = 3.6) {
        this.map.getView().animate({
            center: coordinate,
            duration,
            // zoom
        })
    }
}